package string;

public class SubstringDemo {
    public static void main(String[] args) {
        String line ="www.tedu.cn";
        String sudtring =line.substring(4,8);//点不算
        System.out.println(sudtring);

        sudtring =line.substring(4);
        System.out.println(sudtring);//从第4个开始全要

    }
}
